<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.20"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>GuildServiceBasic: guild_service::GuildServiceBasic Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">GuildServiceBasic
   &#160;<span id="projectnumber">0.1.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.20 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>guild_service</b></li><li class="navelem"><a class="el" href="classguild__service_1_1_guild_service_basic.html">GuildServiceBasic</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="classguild__service_1_1_guild_service_basic-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">guild_service::GuildServiceBasic Class Reference<span class="mlabels"><span class="mlabel">final</span></span></div>  </div>
</div><!--header-->
<div class="contents">

<p>公会管理器类  
 <a href="classguild__service_1_1_guild_service_basic.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="guild__service__basic_8h_source.html">guild_service_basic.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a33aa629a444dd8de2184f619af125d96"><td class="memItemLeft" align="right" valign="top"><a id="a33aa629a444dd8de2184f619af125d96"></a>
using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classguild__service_1_1_guild_service_basic.html#a33aa629a444dd8de2184f619af125d96">ForeachGuildCallbackType</a> = std::function&lt; void(const guild_id_type &amp;)&gt;</td></tr>
<tr class="memdesc:a33aa629a444dd8de2184f619af125d96"><td class="mdescLeft">&#160;</td><td class="mdescRight">遍历公会回调函数类型 <br /></td></tr>
<tr class="separator:a33aa629a444dd8de2184f619af125d96"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a27b7f5b5b4243911caddc09825eb8be3"><td class="memItemLeft" align="right" valign="top"><a id="a27b7f5b5b4243911caddc09825eb8be3"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>GuildServiceBasic</b> (const <a class="el" href="classguild__service_1_1_guild_service_basic.html">GuildServiceBasic</a> &amp;)=delete</td></tr>
<tr class="separator:a27b7f5b5b4243911caddc09825eb8be3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a14a2c710bed8c2e21c88b723c7dbbb91"><td class="memItemLeft" align="right" valign="top"><a id="a14a2c710bed8c2e21c88b723c7dbbb91"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>GuildServiceBasic</b> (<a class="el" href="classguild__service_1_1_guild_service_basic.html">GuildServiceBasic</a> &amp;&amp;)=delete</td></tr>
<tr class="separator:a14a2c710bed8c2e21c88b723c7dbbb91"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a33eff226ca46aef1f85f4dcab2b59056"><td class="memItemLeft" align="right" valign="top"><a id="a33eff226ca46aef1f85f4dcab2b59056"></a>
const <a class="el" href="classguild__service_1_1_guild_service_basic.html">GuildServiceBasic</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>operator=</b> (const <a class="el" href="classguild__service_1_1_guild_service_basic.html">GuildServiceBasic</a> &amp;)=delete</td></tr>
<tr class="separator:a33eff226ca46aef1f85f4dcab2b59056"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1069915f8fb382f4123ae4874c7248a3"><td class="memItemLeft" align="right" valign="top"><a id="a1069915f8fb382f4123ae4874c7248a3"></a>
const <a class="el" href="classguild__service_1_1_guild_service_basic.html">GuildServiceBasic</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>operator=</b> (<a class="el" href="classguild__service_1_1_guild_service_basic.html">GuildServiceBasic</a> &amp;&amp;)=delete</td></tr>
<tr class="separator:a1069915f8fb382f4123ae4874c7248a3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aec72559ab54e8cace8dae44dcdd12dd4"><td class="memItemLeft" align="right" valign="top">guild_id_type&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classguild__service_1_1_guild_service_basic.html#aec72559ab54e8cace8dae44dcdd12dd4">GetGuildIdByRole</a> (const role_uuid_type role_uuid) const</td></tr>
<tr class="memdesc:aec72559ab54e8cace8dae44dcdd12dd4"><td class="mdescLeft">&#160;</td><td class="mdescRight">根据角色唯一id获取公会id  <a href="classguild__service_1_1_guild_service_basic.html#aec72559ab54e8cace8dae44dcdd12dd4">More...</a><br /></td></tr>
<tr class="separator:aec72559ab54e8cace8dae44dcdd12dd4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a53d4fc0508135f7e04de12f5208c4aef"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classguild__service_1_1_guild_service_basic.html#a53d4fc0508135f7e04de12f5208c4aef">AddGuild</a> (const guild_id_type &amp;guild_id)</td></tr>
<tr class="memdesc:a53d4fc0508135f7e04de12f5208c4aef"><td class="mdescLeft">&#160;</td><td class="mdescRight">添加公会  <a href="classguild__service_1_1_guild_service_basic.html#a53d4fc0508135f7e04de12f5208c4aef">More...</a><br /></td></tr>
<tr class="separator:a53d4fc0508135f7e04de12f5208c4aef"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a17bd47b1a19ca7cc53b59d11fc2b1fb5"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classguild__service_1_1_guild_service_basic.html#a17bd47b1a19ca7cc53b59d11fc2b1fb5">RemoveGuild</a> (const guild_id_type guild_id)</td></tr>
<tr class="memdesc:a17bd47b1a19ca7cc53b59d11fc2b1fb5"><td class="mdescLeft">&#160;</td><td class="mdescRight">移除公会  <a href="classguild__service_1_1_guild_service_basic.html#a17bd47b1a19ca7cc53b59d11fc2b1fb5">More...</a><br /></td></tr>
<tr class="separator:a17bd47b1a19ca7cc53b59d11fc2b1fb5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9e7e1ac5c3b623bfca3dace697454352"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classguild__service_1_1_guild_service_basic.html#a9e7e1ac5c3b623bfca3dace697454352">AddGuildRole</a> (const guild_id_type guild_id, const role_uuid_type role_uuid)</td></tr>
<tr class="memdesc:a9e7e1ac5c3b623bfca3dace697454352"><td class="mdescLeft">&#160;</td><td class="mdescRight">添加角色到公会id的映射  <a href="classguild__service_1_1_guild_service_basic.html#a9e7e1ac5c3b623bfca3dace697454352">More...</a><br /></td></tr>
<tr class="separator:a9e7e1ac5c3b623bfca3dace697454352"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a38e88a3e956116c2d8e6035d2b489209"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classguild__service_1_1_guild_service_basic.html#a38e88a3e956116c2d8e6035d2b489209">RemoveGuildRole</a> (const guild_id_type guild_id, const role_uuid_type role_uuid)</td></tr>
<tr class="memdesc:a38e88a3e956116c2d8e6035d2b489209"><td class="mdescLeft">&#160;</td><td class="mdescRight">移除角色到公会id的映射  <a href="classguild__service_1_1_guild_service_basic.html#a38e88a3e956116c2d8e6035d2b489209">More...</a><br /></td></tr>
<tr class="separator:a38e88a3e956116c2d8e6035d2b489209"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5d1e52122e505730c60e1958620f0319"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classguild__service_1_1_guild_service_basic.html#a5d1e52122e505730c60e1958620f0319">ForeachGuild</a> (const <a class="el" href="classguild__service_1_1_guild_service_basic.html#a33aa629a444dd8de2184f619af125d96">ForeachGuildCallbackType</a> &amp;callback)</td></tr>
<tr class="memdesc:a5d1e52122e505730c60e1958620f0319"><td class="mdescLeft">&#160;</td><td class="mdescRight">遍历所有公会  <a href="classguild__service_1_1_guild_service_basic.html#a5d1e52122e505730c60e1958620f0319">More...</a><br /></td></tr>
<tr class="separator:a5d1e52122e505730c60e1958620f0319"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ace03a702277cd013c7c2037ba07e5dbd"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classguild__service_1_1_guild_service_basic.html#ace03a702277cd013c7c2037ba07e5dbd">LoadGuildAsync</a> ()</td></tr>
<tr class="memdesc:ace03a702277cd013c7c2037ba07e5dbd"><td class="mdescLeft">&#160;</td><td class="mdescRight">异步加载公会  <a href="classguild__service_1_1_guild_service_basic.html#ace03a702277cd013c7c2037ba07e5dbd">More...</a><br /></td></tr>
<tr class="separator:ace03a702277cd013c7c2037ba07e5dbd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3beaec72abce51ff851201fadce9a73a"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classguild__service_1_1_guild_service_basic.html#a3beaec72abce51ff851201fadce9a73a">InSameGuild</a> (const role_uuid_type role_uuid1, const role_uuid_type role_uuid2)</td></tr>
<tr class="memdesc:a3beaec72abce51ff851201fadce9a73a"><td class="mdescLeft">&#160;</td><td class="mdescRight">是否是同一个公会  <a href="classguild__service_1_1_guild_service_basic.html#a3beaec72abce51ff851201fadce9a73a">More...</a><br /></td></tr>
<tr class="separator:a3beaec72abce51ff851201fadce9a73a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6c35dac6b5461cb3ede679e693016d0c"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classguild__service_1_1_guild_service_basic.html#a6c35dac6b5461cb3ede679e693016d0c">HasGuild</a> (const role_uuid_type role_uuid) const</td></tr>
<tr class="memdesc:a6c35dac6b5461cb3ede679e693016d0c"><td class="mdescLeft">&#160;</td><td class="mdescRight">是否有公会  <a href="classguild__service_1_1_guild_service_basic.html#a6c35dac6b5461cb3ede679e693016d0c">More...</a><br /></td></tr>
<tr class="separator:a6c35dac6b5461cb3ede679e693016d0c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9ade838b64cc4b6782e267255a022116"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classguild__service_1_1_guild_service_basic.html#a9ade838b64cc4b6782e267255a022116">IsGuildNameExisted</a> (const std::string &amp;name) const</td></tr>
<tr class="memdesc:a9ade838b64cc4b6782e267255a022116"><td class="mdescLeft">&#160;</td><td class="mdescRight">公会总数量  <a href="classguild__service_1_1_guild_service_basic.html#a9ade838b64cc4b6782e267255a022116">More...</a><br /></td></tr>
<tr class="separator:a9ade838b64cc4b6782e267255a022116"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:aa3cf09927644b2c17a705ddcab28003e"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classguild__service_1_1_guild_service_basic.html#aa3cf09927644b2c17a705ddcab28003e">IncrGuildLastId</a> (guild_id_type &amp;guild_id)</td></tr>
<tr class="memdesc:aa3cf09927644b2c17a705ddcab28003e"><td class="mdescLeft">&#160;</td><td class="mdescRight">同步递增公会id  <a href="classguild__service_1_1_guild_service_basic.html#aa3cf09927644b2c17a705ddcab28003e">More...</a><br /></td></tr>
<tr class="separator:aa3cf09927644b2c17a705ddcab28003e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a74d346081ed5b31b0920a027eafff85d"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classguild__service_1_1_guild_service_basic.html#a74d346081ed5b31b0920a027eafff85d">DeleteGuildToRedis</a> (const guild_id_type guild_id)</td></tr>
<tr class="memdesc:a74d346081ed5b31b0920a027eafff85d"><td class="mdescLeft">&#160;</td><td class="mdescRight">同步删除公会  <a href="classguild__service_1_1_guild_service_basic.html#a74d346081ed5b31b0920a027eafff85d">More...</a><br /></td></tr>
<tr class="separator:a74d346081ed5b31b0920a027eafff85d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4cc90fc8cc9c9176ee947041128b17fb"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classguild__service_1_1_guild_service_basic.html#a4cc90fc8cc9c9176ee947041128b17fb">DeleteGuildModuleToRedis</a> (const Guild &amp;guild, const std::string &amp;module_name)</td></tr>
<tr class="memdesc:a4cc90fc8cc9c9176ee947041128b17fb"><td class="mdescLeft">&#160;</td><td class="mdescRight">同步删除公会模块  <a href="classguild__service_1_1_guild_service_basic.html#a4cc90fc8cc9c9176ee947041128b17fb">More...</a><br /></td></tr>
<tr class="separator:a4cc90fc8cc9c9176ee947041128b17fb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a62d92bbe3fb817001683692ba7f41e60"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classguild__service_1_1_guild_service_basic.html#a62d92bbe3fb817001683692ba7f41e60">SaveGuildRoleToRedis</a> (const std::string &amp;op, const role_uuid_type role_uuid, const guild_id_type guild_id)</td></tr>
<tr class="memdesc:a62d92bbe3fb817001683692ba7f41e60"><td class="mdescLeft">&#160;</td><td class="mdescRight">同步保存公会角色  <a href="classguild__service_1_1_guild_service_basic.html#a62d92bbe3fb817001683692ba7f41e60">More...</a><br /></td></tr>
<tr class="separator:a62d92bbe3fb817001683692ba7f41e60"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5c88f358230387be0aaaf69e9bab9150"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classguild__service_1_1_guild_service_basic.html#a5c88f358230387be0aaaf69e9bab9150">SaveLastGuildIdToRedis</a> (const guild_id_type guild_id)</td></tr>
<tr class="memdesc:a5c88f358230387be0aaaf69e9bab9150"><td class="mdescLeft">&#160;</td><td class="mdescRight">保存最后创建的公会id  <a href="classguild__service_1_1_guild_service_basic.html#a5c88f358230387be0aaaf69e9bab9150">More...</a><br /></td></tr>
<tr class="separator:a5c88f358230387be0aaaf69e9bab9150"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aac9e051e9b5c212a6cc7e1f7666e4314"><td class="memItemLeft" align="right" valign="top">static Guild&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classguild__service_1_1_guild_service_basic.html#aac9e051e9b5c212a6cc7e1f7666e4314">NewGuild</a> (const guild_id_type guild_id=0ull)</td></tr>
<tr class="memdesc:aac9e051e9b5c212a6cc7e1f7666e4314"><td class="mdescLeft">&#160;</td><td class="mdescRight">构造一个公会  <a href="classguild__service_1_1_guild_service_basic.html#aac9e051e9b5c212a6cc7e1f7666e4314">More...</a><br /></td></tr>
<tr class="separator:aac9e051e9b5c212a6cc7e1f7666e4314"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af7755f60ce4b6847a6ee70841aecb06b"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classguild__service_1_1_guild_service_basic.html#af7755f60ce4b6847a6ee70841aecb06b">IsValidGuild</a> (const Guild &amp;guild)</td></tr>
<tr class="memdesc:af7755f60ce4b6847a6ee70841aecb06b"><td class="mdescLeft">&#160;</td><td class="mdescRight">公会是否合法  <a href="classguild__service_1_1_guild_service_basic.html#af7755f60ce4b6847a6ee70841aecb06b">More...</a><br /></td></tr>
<tr class="separator:af7755f60ce4b6847a6ee70841aecb06b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>公会管理器类 </p>
<p>提供id索引，删除、添加等功能 </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="a53d4fc0508135f7e04de12f5208c4aef"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a53d4fc0508135f7e04de12f5208c4aef">&#9670;&nbsp;</a></span>AddGuild()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool guild_service::GuildServiceBasic::AddGuild </td>
          <td>(</td>
          <td class="paramtype">const guild_id_type &amp;&#160;</td>
          <td class="paramname"><em>guild_id</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>添加公会 </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">guild_id</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true </dd>
<dd>
false </dd></dl>

</div>
</div>
<a id="a9e7e1ac5c3b623bfca3dace697454352"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9e7e1ac5c3b623bfca3dace697454352">&#9670;&nbsp;</a></span>AddGuildRole()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool guild_service::GuildServiceBasic::AddGuildRole </td>
          <td>(</td>
          <td class="paramtype">const guild_id_type&#160;</td>
          <td class="paramname"><em>guild_id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const role_uuid_type&#160;</td>
          <td class="paramname"><em>role_uuid</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>添加角色到公会id的映射 </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">role_uuid</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true </dd>
<dd>
false </dd></dl>

</div>
</div>
<a id="a4cc90fc8cc9c9176ee947041128b17fb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4cc90fc8cc9c9176ee947041128b17fb">&#9670;&nbsp;</a></span>DeleteGuildModuleToRedis()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static bool guild_service::GuildServiceBasic::DeleteGuildModuleToRedis </td>
          <td>(</td>
          <td class="paramtype">const Guild &amp;&#160;</td>
          <td class="paramname"><em>guild</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>module_name</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>同步删除公会模块 </p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">Serializer</td><td>模块序列化类模板 </td></tr>
  </table>
  </dd>
</dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">guild</td><td>公会 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true </dd>
<dd>
false </dd></dl>

</div>
</div>
<a id="a74d346081ed5b31b0920a027eafff85d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a74d346081ed5b31b0920a027eafff85d">&#9670;&nbsp;</a></span>DeleteGuildToRedis()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static bool guild_service::GuildServiceBasic::DeleteGuildToRedis </td>
          <td>(</td>
          <td class="paramtype">const guild_id_type&#160;</td>
          <td class="paramname"><em>guild_id</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>同步删除公会 </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">guild</td><td>公会 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true </dd>
<dd>
false </dd></dl>

</div>
</div>
<a id="a5d1e52122e505730c60e1958620f0319"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5d1e52122e505730c60e1958620f0319">&#9670;&nbsp;</a></span>ForeachGuild()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void guild_service::GuildServiceBasic::ForeachGuild </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classguild__service_1_1_guild_service_basic.html#a33aa629a444dd8de2184f619af125d96">ForeachGuildCallbackType</a> &amp;&#160;</td>
          <td class="paramname"><em>callback</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>遍历所有公会 </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">callback</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="aec72559ab54e8cace8dae44dcdd12dd4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aec72559ab54e8cace8dae44dcdd12dd4">&#9670;&nbsp;</a></span>GetGuildIdByRole()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">guild_id_type guild_service::GuildServiceBasic::GetGuildIdByRole </td>
          <td>(</td>
          <td class="paramtype">const role_uuid_type&#160;</td>
          <td class="paramname"><em>role_uuid</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>根据角色唯一id获取公会id </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">role_uuid</td><td>角色唯一id </td></tr>
    <tr><td class="paramname">guild_id</td><td>公会id </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true 获取成功 </dd>
<dd>
false 获取失败 </dd></dl>

</div>
</div>
<a id="a6c35dac6b5461cb3ede679e693016d0c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6c35dac6b5461cb3ede679e693016d0c">&#9670;&nbsp;</a></span>HasGuild()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool guild_service::GuildServiceBasic::HasGuild </td>
          <td>(</td>
          <td class="paramtype">const role_uuid_type&#160;</td>
          <td class="paramname"><em>role_uuid</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>是否有公会 </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">role_uuid</td><td>角色唯一id </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>是否有公会 </dd></dl>

</div>
</div>
<a id="aa3cf09927644b2c17a705ddcab28003e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa3cf09927644b2c17a705ddcab28003e">&#9670;&nbsp;</a></span>IncrGuildLastId()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool guild_service::GuildServiceBasic::IncrGuildLastId </td>
          <td>(</td>
          <td class="paramtype">guild_id_type &amp;&#160;</td>
          <td class="paramname"><em>guild_id</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>同步递增公会id </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">guild_id</td><td>公会id </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true 递增成功 </dd>
<dd>
false 递增失败 </dd></dl>

</div>
</div>
<a id="a3beaec72abce51ff851201fadce9a73a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3beaec72abce51ff851201fadce9a73a">&#9670;&nbsp;</a></span>InSameGuild()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool guild_service::GuildServiceBasic::InSameGuild </td>
          <td>(</td>
          <td class="paramtype">const role_uuid_type&#160;</td>
          <td class="paramname"><em>role_uuid1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const role_uuid_type&#160;</td>
          <td class="paramname"><em>role_uuid2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>是否是同一个公会 </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">role_uuid1</td><td></td></tr>
    <tr><td class="paramname">role_uuid2</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true </dd>
<dd>
false </dd></dl>

</div>
</div>
<a id="a9ade838b64cc4b6782e267255a022116"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9ade838b64cc4b6782e267255a022116">&#9670;&nbsp;</a></span>IsGuildNameExisted()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool guild_service::GuildServiceBasic::IsGuildNameExisted </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>name</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>公会总数量 </p>
<dl class="section return"><dt>Returns</dt><dd>std::size_t</dd></dl>
<p>公会名字是否存在</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">name</td><td>公会名字 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true 公会名字存在 </dd>
<dd>
false 公会名字不存在 </dd></dl>

</div>
</div>
<a id="af7755f60ce4b6847a6ee70841aecb06b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af7755f60ce4b6847a6ee70841aecb06b">&#9670;&nbsp;</a></span>IsValidGuild()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool guild_service::GuildServiceBasic::IsValidGuild </td>
          <td>(</td>
          <td class="paramtype">const Guild &amp;&#160;</td>
          <td class="paramname"><em>guild</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>公会是否合法 </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">guild</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true </dd>
<dd>
false </dd></dl>

</div>
</div>
<a id="ace03a702277cd013c7c2037ba07e5dbd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ace03a702277cd013c7c2037ba07e5dbd">&#9670;&nbsp;</a></span>LoadGuildAsync()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool guild_service::GuildServiceBasic::LoadGuildAsync </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>异步加载公会 </p>
<dl class="section return"><dt>Returns</dt><dd>true </dd>
<dd>
false </dd></dl>

</div>
</div>
<a id="aac9e051e9b5c212a6cc7e1f7666e4314"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aac9e051e9b5c212a6cc7e1f7666e4314">&#9670;&nbsp;</a></span>NewGuild()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Guild guild_service::GuildServiceBasic::NewGuild </td>
          <td>(</td>
          <td class="paramtype">const guild_id_type&#160;</td>
          <td class="paramname"><em>guild_id</em> = <code>0ull</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>构造一个公会 </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">guild_id</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Guild </dd></dl>

</div>
</div>
<a id="a17bd47b1a19ca7cc53b59d11fc2b1fb5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a17bd47b1a19ca7cc53b59d11fc2b1fb5">&#9670;&nbsp;</a></span>RemoveGuild()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool guild_service::GuildServiceBasic::RemoveGuild </td>
          <td>(</td>
          <td class="paramtype">const guild_id_type&#160;</td>
          <td class="paramname"><em>guild_id</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>移除公会 </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">guild_id</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true </dd>
<dd>
false </dd></dl>

</div>
</div>
<a id="a38e88a3e956116c2d8e6035d2b489209"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a38e88a3e956116c2d8e6035d2b489209">&#9670;&nbsp;</a></span>RemoveGuildRole()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool guild_service::GuildServiceBasic::RemoveGuildRole </td>
          <td>(</td>
          <td class="paramtype">const guild_id_type&#160;</td>
          <td class="paramname"><em>guild_id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const role_uuid_type&#160;</td>
          <td class="paramname"><em>role_uuid</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>移除角色到公会id的映射 </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">guild_id</td><td></td></tr>
    <tr><td class="paramname">role_uuid</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true </dd>
<dd>
false </dd></dl>

</div>
</div>
<a id="a62d92bbe3fb817001683692ba7f41e60"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a62d92bbe3fb817001683692ba7f41e60">&#9670;&nbsp;</a></span>SaveGuildRoleToRedis()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool guild_service::GuildServiceBasic::SaveGuildRoleToRedis </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>op</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const role_uuid_type&#160;</td>
          <td class="paramname"><em>role_uuid</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const guild_id_type&#160;</td>
          <td class="paramname"><em>guild_id</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>同步保存公会角色 </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">op</td><td>redis操作 </td></tr>
    <tr><td class="paramname">role_uuid</td><td>角色唯一id </td></tr>
    <tr><td class="paramname">guild_id</td><td>公会id </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true 保存成功 </dd>
<dd>
false 保存失败 </dd></dl>

</div>
</div>
<a id="a5c88f358230387be0aaaf69e9bab9150"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5c88f358230387be0aaaf69e9bab9150">&#9670;&nbsp;</a></span>SaveLastGuildIdToRedis()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool guild_service::GuildServiceBasic::SaveLastGuildIdToRedis </td>
          <td>(</td>
          <td class="paramtype">const guild_id_type&#160;</td>
          <td class="paramname"><em>guild_id</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>保存最后创建的公会id </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">guild_id</td><td>公会id </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true 保存成功 </dd>
<dd>
false 保存失败 </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>guildservicebasic/<a class="el" href="guild__service__basic_8h_source.html">guild_service_basic.h</a></li>
<li>guildservicebasic/guild_service_basic.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="http://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.8.20
</small></address>
</body>
</html>
